class CustomerTag {
  public tagName: string = ''
  public sort: number | null = null
  public id: string = ''
  public tagId: string = ''
  
  // 前端使用的
  public active: boolean = false
  
  public static convertToFilterStruct(customerTag: CustomerTag, selected: boolean) {
    return {
      selected,
      text: customerTag.tagName,
      value: customerTag.id
    }
  }
  
}

export default CustomerTag
